package com.hz.userService.service;

import com.hz.userService.domain.Class;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.org.apache.xpath.internal.operations.Bool;

/**
* @author li
* @description 针对表【classes(班级表)】的数据库操作Service
* @createDate 2023-09-23 17:10:28
*/
public interface ClassService extends IService<Class> {

    /**
     * 添加班级
     * @param className
     * @param gradeId
     * @return
     */
    Boolean addClass(String className,Integer gradeId);

    /**
     * 修改班级
     * @param id
     * @param className
     * @param gradeId
     * @return
     */
    Boolean editClass(Integer id,String className,Integer gradeId);

    /**
     * 删除班级
     * @param id
     * @return
     */
    Boolean deleteClass(Integer id);

    /**
     * 获取班级详情
     * @param id
     * @return
     */
    Class viewClass(Integer id);
}
